#include <stdio.h>
#include <math.h>
int main()
{
	int n;
	scanf("%d",&n);
	int x,y; 
	for(y=-n;y<=n;++y,puts(""))
	{
		for(x=-n;x<=n;++x)
			putchar(abs(x)+abs(y)<=n&&(n-abs(x)-abs(y))%3==0?'*':' ');
	 } 
	return 0;
} 
